﻿using System;

namespace State
{
    class Program
    {
        static void Main(string[] args)
        {
            Work work = new Work();
            for(int i = 1; i <= 24; i++)
            {
                work.Hour = i;
                work.DoWork();

                if (i == 21)
                {
                    work.Finish = true;
                }
            }

            Console.Read();
        }
    }
}
